<?php echo $this->load->view('meta'); ?>
<link rel="stylesheet" href="<?=base_url()?>css/datepicker.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?=base_url()?>css/calendar.css" type="text/css" media="screen" />
<script src="<?=base_url();?>js/datepicker.js"></script>
<title>xa-ncsu | calendar</title>
<?php echo $this->load->view('header'); ?>
<div id="content">
<?=$this->validation->error_string;?>
<?=form_open('calendar/create');?>
<fieldset>
	<legend><span>create a calendar entry</span></legend>
	<ol>
		<li><label for="name">subject</label>
			<input type="text" name="name" value="<?=$this->validation->name;?>" class="calendarform"/></li>
		<li><label for="description">description</label>
			<input type="text" name="description" value="<?=$this->validation->description;?>" class="calendarform"/></li>
		<li><label for="start">start&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time(24hr)</label>
			<input type="text" name="start" value="<?=$this->validation->start;?>" class="format-y-m-d divider-dash" style="width:100px; margin=5px;" maxlength="10"/>
			<input type="text" name="start_time" value="<?=$this->validation->start_time;?>"class="time" class="calendarform"/></li>
		<li><label for="end">end&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;time(24hr)</label>
			<input type="text" name="end" value="<?=$this->validation->end;?>" class="format-y-m-d divider-dash" style="width:100px; margin=5px;" maxlength="10"/>
			<input type="text" name="end_time" value="<?=$this->validation->end_time;?>" class="time"/></li>
		<li><label for="location">location</label>
			<input type="text" name="location" value="<?=$this->validation->location;?>" size="30" class="calendarform"/></li>
			<li><?=form_submit('','publish')?> <?=anchor('admin/events', 'Cancel');?></li>
			<?=form_hidden('id', $this->uri->segment(3))?>
	</ol>
</fieldset>
<?=form_close()?>
</div>
<?php echo $this->load->view('footer');?>
